package cn.changeforyou.web.cloud.webBase.validator;

import cn.changeforyou.base.exception.DataExceptionEnum;
import cn.changeforyou.base.exception.ExceptionFactory;

/**
 * 参数校验器
 */
public class ParamsValidator {

    public static void validIsNull(Object obj) {
        if(null == obj){
            throw ExceptionFactory.jsonException(DataExceptionEnum.PARAM_BLANK);
        }
    }
}
